package com.hanggold.quartz.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.time.LocalDateTime;

/**
 * @author <a href="mailto:sunmch@163.com">smc</a>
 * @date 2019-08-22 15:41
 * @since 1.0.0
 **/
public class HelloJob implements Job {


    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {

        System.out.printf("[%s] , currentThread: %s , contenxt: %s \n",
                LocalDateTime.now().toString(),Thread.currentThread().getName(),
                context);

        context.getMergedJobDataMap();

    }
}
